package com.hissy.common.design.create.builder;

/**
 * Created by zhangyanfei on 2019/4/4.
 *
 * @author zhangyanfei
 * @date 2019/04/04
 */
public class PersonWoManBuilder implements PersonBuilder {

    private AbstractPerson abstractPerson;

    PersonWoManBuilder() {
        abstractPerson = new AbstractPerson();
    }

    @Override
    public void buildHead() {
        abstractPerson.setHead("women buildHead");
    }

    @Override
    public void buildBody() {
        abstractPerson.setBody("women buildBody");
    }

    @Override
    public void buildFoot() {
        abstractPerson.setFoot("women buildFoot");
    }

    @Override
    public AbstractPerson buildPerson() {
        return abstractPerson;
    }
}
